package com.gxl.design.decoratorpattern.decoretor;

import com.gxl.design.decoratorpattern.Animal;

public abstract class DecoratorAnimal implements Animal {

    protected Animal animal;

    public DecoratorAnimal(Animal animal) {
        this.animal = animal;
    }

    @Override
    public void animalName() {
        this.animal.animalName();
    }
}
